package com.cci.kangdao.dao;

import com.cci.kangdao.dao.model.WorkOrderRemedyPicture;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkOrderRemedyPictureDao {
    int deleteByPrimaryKey(Long id);

    int insert(WorkOrderRemedyPicture record);

    int insertSelective(WorkOrderRemedyPicture record);

    WorkOrderRemedyPicture selectByPrimaryKey(Long id);

    List<WorkOrderRemedyPicture> selectListByOrderId(Long orderId);

    List<WorkOrderRemedyPicture> selectByOrderIdAndPicNo(@Param("orderId") Long orderId,@Param("picNo") String picNo);

    WorkOrderRemedyPicture selectLastByOrderIdAndPicNo(@Param("orderId") Long orderId,@Param("picNo") String picNo);

    int selectCountByOrderId(Long orderId);

    int updateByPrimaryKeySelective(WorkOrderRemedyPicture record);

    int updateByPrimaryKey(WorkOrderRemedyPicture record);
}